import { createApp } from 'vue'
import { createPinia } from 'pinia'
import persist from 'pinia-plugin-persistedstate'

import 'virtual:svg-icons-register'
import SvgIcon from '@/components/SvgIcon/index.vue'
import '@/assets/css/global.css'

import App from './App.vue'
import router from './router'

const app = createApp(App)
app.config.warnHandler = () => null //去除调试的警告信息

app.use(createPinia().use(persist))
app.use(router)
app.component('SvgIcon', SvgIcon)

app.mount('#app')
